"""
    Created By Khun on 2020/4/7
"""

__author__ = 'Khun'

from app import create_app
from app.models.base import db
from app.models.user import User

app = create_app()

with app.app_context():
    with db.auto_commit():
        user = User()
        user.username = 'khun'
        user.nickname = 'nickkhun'
        user.password = 'admin123'
        user.is_superuser = 1
        db.session.add(user)
